﻿//
//  Windows_libc
//
//  Created by  cc_team(陈旭，陈曦) qq:511272827.
//  Copyright 2011 cc_team. All rights reserved.
//
#ifndef CC_MEMORY_H
#define	CC_MEMORY_H

#include "cc_common.h"
#include "cc_stdlib.h"

#ifdef __cplusplus
extern "C" {
#endif

void * __cdecl cc_memccpy(
	void *dest, 
	const void *src,
	int c,
	size_t count
);

void * __cdecl cc_memcpy(
	void *dest,
	const void *src,
	size_t cnt
);

void __cdecl cc_memcpy_s(
	void *dest,
	size_t destSize,
	const void *src,
	size_t srcSize
);

void * __cdecl cc_memchr(
	const void *buf,
	int c,
	size_t cnt
);

int __cdecl cc_memcmp(
	const void *buf1,
	const void *buf2,
	size_t cnt
);

int __cdecl cc_memicmp(
	const void *buf1,
	const void *buf2,
	size_t cnt
);

void * __cdecl cc_memmove(
	void *dest,
	const void *src,
	size_t cnt
);

void __cdecl cc_memmove_s(
	void *dest,
	size_t destLen,
	const void *src,
	size_t srcLen
	);

void * __cdecl cc_memset(
	void *buf,
	int c,
	size_t cnt
	);

void cc_bzero(
	void *buf,
	size_t len
	);

#ifdef __cplusplus
}		// extern "C"
#endif

#endif